<template>
  <div>
    <div class="details">
      <div class="details_top">{{title}}</div>
      <div class="details_mo">{{time}}</div>
      <div class="details_midd">
        {{content}}
      </div>
    </div>
  </div>
</template>

<script>
import * as api from "../api";
export default {
  data() {
    return {
      title:"",
      time:"",
      content:"",
    };
  },
  created() {
    this.mail()
  },
  methods: {
    //   邮件查询
    mail() {
      const params = {
        userId: 1,
      };
      api.mailQuery(params).then((res) => {
          console.log(222,res.data.list[2]);
        this.time = res.data.list[2].createdDate
        this.title = res.data.list[2].mailName
        this.content = res.data.list[2].mailMessage
      });
    },
    editUser() {
      this.isDrawer = true;
    },
    closeDrawer() {
      this.isDrawer = false;
    },
  },
};
</script>

<style lang="" scoped>
.return{
  width: 92px;
height: 38px;
border-radius: 5px;
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);  
margin-left: 70px;
margin-top: 90px;
}
.details_top{
  width: 153px;
height: 24px;
font-family: Source Han Sans CN;
font-weight: 700;
color: #666666;
font-size: 24px;  
margin-left: 70px;
padding-top: 30px;
}
.details_mo{
height: 16px;
font-family: Source Han Sans CN;
color: #666666;
font-size: 16px;
margin-left: 70px;
padding-top: 35px;
}
.details_midd{
 width: 960px;
height: 518px;
font-family: Source Han Sans CN;
color: #666666;
font-size: 16px; 
margin-left: 70px;
padding-top: 40px;  
}
.details {
  height: 800px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}
#color {
  background-color: #999999;
}
.el-row {
  margin-bottom: 20px;
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  height: 34px;
  background: #6878f0;
  text-align: center;
  line-height: 34px;
  font-family: Source Han Sans CN;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
